package cn.t11.dm.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author t11
 * @since 2020-01-14
 */
public class DmUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 密码
     */
    private String password;

    @TableField("wxUserId")
    private String wxUserId;

    /**
     * 真实姓名
     */
    @TableField("realName")
    private String realName;

    /**
     * 昵称
     */
    @TableField("nickName")
    private String nickName;

    /**
     * 性别(0:男,1:女)
     */
    private Integer sex;

    /**
     * 兴趣爱好
     */
    private String hobby;

    /**
     * 身份证号
     */
    @TableField("idCard")
    private String idCard;

    /**
     * 生日
     */
    private Date birthday;

    /**
     * 创建时间
     */
    @TableField("createdTime")
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField("updatedTime")
    private Date updatedTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getWxUserId() {
        return wxUserId;
    }

    public void setWxUserId(String wxUserId) {
        this.wxUserId = wxUserId;
    }
    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }
    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "DmUser{" +
            "id=" + id +
            ", phone=" + phone +
            ", password=" + password +
            ", wxUserId=" + wxUserId +
            ", realName=" + realName +
            ", nickName=" + nickName +
            ", sex=" + sex +
            ", hobby=" + hobby +
            ", idCard=" + idCard +
            ", birthday=" + birthday +
            ", createdTime=" + createdTime +
            ", updatedTime=" + updatedTime +
        "}";
    }
}
